package model.command;
import controller.KeyListeners.KeyListenerSet;
import model.playable.RallyPoint;
/**
 *
 * @author joseph
 */
public class BuildPowerPlant extends Build{
    public BuildPowerPlant(RallyPoint rallyPoint){
        super(rallyPoint);
    }
    @Override
    public Command clone() {
        return new BuildPowerPlant(getRallyPoint());
    }
    @Override
    public void executeCommand() {
        ((Buildable)getRallyPoint()).buildPowerPlant(getNumWorkers());
    }
    @Override
    public String toString(){
        return "Build Power Plant";
    }

}
